import { PaymentService } from './service'
// PayPal创建订阅函数
export const createPayPalSubscription = async (planCode: string) => {
  // 调用后端API创建PayPal订阅
  const res = await PaymentService.createPayPalSubscription({
    priceId: planCode,
  })
  return res.paypalOrderId ?? ''
}
